package com.ramnight.unify.boot.jdbc;

import javax.sql.DataSource;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class UnifyJdbcConfiguration {
	@Bean
	@ConditionalOnProperty("spring.datasource.url")
	public UnifyJdbc jdbc(DataSource dataSource) {
		return new UnifyJdbc(dataSource);
	}
}
